<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<a class="menu-toggler" id="menu-toggler" href="#">
    <span class="menu-text"></span>
</a>

<div class="sidebar" id="sidebar">
    <ul class="nav nav-list">

        <c:if test="${sessionAdmin.type == 'admin'}">
            <li>
                <a href="${baseUrl}/index.do"><i class="icon-leaf"></i>首页</a>
            </li>
            <li>
                <a href="#" class="dropdown-toggle">
                    <i class="icon-user"></i>
                    <span class="menu-text">人员管理</span>
                    <b class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <li>
                        <a href="${baseUrl}/user/list.do"><i class="icon-leaf"></i>登录用户</a>
                    </li>
                    <li >
                        <a href="/player/list.do"><i class="icon-leaf"></i>篮球员</a>
                    </li>
                </ul>
            </li>
            <li >
                <a href="/team/list.do"><i class="icon-leaf"></i>球队管理</a>
            </li>
            <li >
                <a href="/schedule/list.do"><i class="icon-calendar"></i>赛事管理</a>
            </li>
            <li >
                <a href="/news/list.do"><i class="icon-list"></i>新闻管理</a>
            </li>
        </c:if>


        <c:if test="${sessionAdmin.type != 'admin'}">
            <li>
                <a href="${baseUrl}/index.do"><i class="icon-leaf"></i>今日资讯</a>
            </li>
            <li>
                <a href="${baseUrl}/team/list-query.do"><i class="icon-leaf"></i>球队查看</a>
            </li>
            <li >
                <a href="/player/list-query.do"><i class="icon-leaf"></i>球员查看</a>
            </li>
            <li >
                <a href="/schedule/list-query.do"><i class="icon-calendar"></i>赛事查看</a>
            </li>
        </c:if>
    </ul>

    <div class="sidebar-collapse" id="sidebar-collapse">
        <i class="icon-double-angle-left" data-icon1="icon-double-angle-left"
           data-icon2="icon-double-angle-right"></i>
    </div>
</div>
